<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  //  声明方式 键值对的形式 key:value
  let m = new Map()

  // 添加 set()
  m.set('name', 'zs')
  console.log(m)

  // 查询 get()
  console.log(m.get('name'))//zs

  // 删除 delete()
  m.delete('name')
  console.log(m)

  let m1 = new Map([['name', 'zs'], ['age', 18]])
  console.log(m1)
</script>

</html>